* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#video {
    width: 100%;
    display: block;
}

.controls button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    margin: 0 5px;
    font-size: 20px;
    transition: all 0.3s ease;
    display: none; /* 默认隐藏所有按钮 */
}

/* 显示播放或暂停按钮中的一个 */
.play-btn, .pause-btn, .stop-btn {
    display: block;
}

/* 视频暂停时显示播放按钮 */
.video-paused .play-btn {
    display: block;
}

.video-paused .pause-btn {
    display: none;
}

/* 视频播放时显示暂停按钮 */
.video-playing .play-btn {
    display: none;
}

.video-playing .pause-btn {
    display: block;
}

/* 停止按钮始终显示 */
.stop-btn {
    display: block !important;
}
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #333;
    width: 100%;
}

.controls button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    margin: 0 5px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.controls button:focus {
    outline: none;
}

.controls button:hover {
    color: #3071a9;
}

.progress {
    flex: 1;
    margin: 0 10px;
    height: 10px;
    cursor: pointer;
}

.timestamp {
    color: #fff;
    font-size: 14px;
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .video-container {
        width: 95%;
    }
    
    .controls {
        padding: 5px;
    }
    
    .controls button {
        font-size: 16px;
        padding: 5px;
    }
    
    .timestamp {
        font-size: 12px;
    }
}